#include<iostream>
#include<cstring>
#include<cmath>
using namespace std;

char* reserver(char num[], int bg, int ed,int temp=1){
    int bits= ed - bg +1,i=0;
    char *result = new char[bits];
    while (bits--)
    {
       result[i++]=num[bg+bits]; 
    }
    if(bg^ed) {
        while (result[++bits]=='0'){}
        while (temp==0)
        {
            if(result[--i]=='0') result[i]='\0';
            else break;
        }
    }
    else bits=0;
    
    

    return result+bits;
}


int main()
{
    int bit,length;
    char num[21],cal=0;
    gets(num);
    length = strlen(num)-1;
    for (int i = 0; i <= length; i++)
    {
        if(num[i]=='.'||num[i]=='/'||num[i]=='%'){
            cal=num[i];
            bit=i;
        }
    }
    switch (cal)
    {
    case '.':
        printf("%s.%s",reserver(num,0,bit-1),reserver(num,bit+1,length,0));
        break;
    case '/':
        printf("%s/%s",reserver(num,0,bit-1),reserver(num,bit+1,length));
        break;
    case '%':
        printf("%s%%",reserver(num,0,bit-1));
        break;
    default:
        printf("%s",reserver(num,0,length));
        break;
    }
    return 0;
}
